﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace RealNumberValidation
{
    class Program
    {
        static void Main(string[] args)
        {
            string number = "-0101.0";

            Match match = Regex.Match(number, @"\A-?[(1-9][0-9]*|0](\.[0-9]+)?\Z");
            if (match.Success) Console.WriteLine("YES");
            else Console.WriteLine("NO");
        }
    }
}
